﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace Model
{
    /// <summary>
    /// 附件
    /// </summary>
    public class AttachmentInfo
    {
        /// <summary>
        /// 新闻ID
        /// </summary>
        public string NewsID { get; set; }
        /// <summary>
        /// 附件文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 上传文件的包含GUID 完整文件名
        /// </summary>
        public string SaveName { get; set; }

        /// <summary>
        /// 去除扩展名认为是FileID，主要是界面html里面用
        /// </summary>
        public string FileID
        {
            get { return Path.GetFileNameWithoutExtension(SaveName); }
        }
    }
}
